/**
 * @description: Login interface parameters
 */
export interface LoginParams {
	username: string;
	password: string;
}

export interface UserInfo {
	userId: string | number;
	name: string;
	username?: string;
	avatar?: string;
	homePath?: string;
	roles?: RoleInfo;
}

export interface RoleInfo {
	roleName: string[];
	roleId: number[];
	roleCode: string[];
}

/**
 * @description: Login interface return value
 */
export interface LoginResultModel {
	userId: string | number;
	name: string;
	token: string;
	roleName: string[];
	roleId: number[];
	roleCode: string[];
}

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
	userId: string | number;
	// 用户名
	username?: string;
	// 真实名字
	name: string;
	roleCode: string[];
	roleId: number[];
	roleName: string[];
	homePath?: string;
}
